package com.prs.crm.domain.cdxh;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * 产品
 * 
 * @author wangting
 */
@Entity
@Table(name = "cdxh_product")
public class cd_Product extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 颜色
	 */
	private String productColor;
	/**
	 * 单位
	 */
	private String unit;

	/**
	 * 产品分类
	 */

	private String type;// 专用产品/通用产品

	/**
	 * 产品类型
	 */
	private String cdProductClass;

	/**
	 * 客户编号
	 */
	private String customer_number;

	/**
	 * 规格
	 */
	private String norm;

	/**
	 * 产品价格
	 */
	@Column(columnDefinition = "Double(11,4) default '0.0000'")
	private Double cost_price;;
	/**
	 * 产品编码
	 */
	private String productcode;
	/**
	 * 是否印刷
	 */

	@Column(columnDefinition = "Integer(11) default '0'")
	private int printName;// 是否印刷（默认‘0’，1是印刷，2是不印刷）

	@Column(columnDefinition = "Integer(11) default '0'")
	private Integer state; // 状态 (默认‘0’，)
	/**
	 * 是否是急单
	 */
	private String rushOrderState;

	/**
	 * 登记人
	 */
	private String register;

	/**
	 * 登记时间
	 */
	private Date register_time;

	@Lob
	private String remark;
	/**
	 * 安全配置显示 默认“0” 大于7不显示
	 */
	@Column(columnDefinition = "Integer(11) default '0'")
	private int showSafeConfigration;

	/**
	 * 库存数量
	 */
	@Column(columnDefinition = "Integer(11) default '0'")
	private Integer stockNums;

	/**
	 * 时间段查询用的
	 * @return
	 */
	private Date remDate;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCustomer_number() {
		return customer_number;
	}

	public void setCustomer_number(String customer_number) {
		this.customer_number = customer_number;
	}

	public String getNorm() {
		return norm;
	}

	public void setNorm(String norm) {
		this.norm = norm;
	}

	public Double getCost_price() {
		return cost_price;
	}

	public void setCost_price(Double cost_price) {
		this.cost_price = cost_price;
	}

	public String getProductcode() {
		return productcode;
	}

	public void setProductcode(String productcode) {
		this.productcode = productcode;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getRegister() {
		return register;
	}

	public void setRegister(String register) {
		this.register = register;
	}

	public Date getRegister_time() {
		return register_time;
	}

	public void setRegister_time(Date register_time) {
		this.register_time = register_time;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getPrintName() {
		return printName;
	}

	public void setPrintName(int printName) {
		this.printName = printName;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getProductColor() {
		return productColor;
	}

	public void setProductColor(String productColor) {
		this.productColor = productColor;
	}

	public String getRushOrderState() {
		return rushOrderState;
	}

	public void setRushOrderState(String rushOrderState) {
		this.rushOrderState = rushOrderState;
	}

	public String getCdProductClass() {
		return cdProductClass;
	}

	public void setCdProductClass(String cdProductClass) {
		this.cdProductClass = cdProductClass;
	}

	public int getShowSafeConfigration() {
		return showSafeConfigration;
	}

	public void setShowSafeConfigration(int showSafeConfigration) {
		this.showSafeConfigration = showSafeConfigration;
	}

	public Integer getStockNums() {
		return stockNums;
	}

	public void setStockNums(Integer stockNums) {
		this.stockNums = stockNums;
	}

	public Date getRemDate() {
		return remDate;
	}

	public void setRemDate(Date remDate) {
		this.remDate = remDate;
	}

}
